package cn.qq.xiangmu.test;

import cn.qq.xiangmu.entity.Dog;
import cn.qq.xiangmu.entity.Master;
import cn.qq.xiangmu.entity.Penguin;

public class Demo04 {
    public static void main(String[] args) {
        Master master=new Master();

        Dog dog=new Dog("汪汪",50,50,"牧羊犬");
        dog.print();
        master.play(dog);
        dog.print();

        Penguin penguin = new Penguin("美美", 50, 50, "女");
        penguin.print();
        master.play(penguin);
        penguin.print();

    }
}
